import request from '@/utils/request'

// 查询营地关联设施列表
export function listCampfacility(query) {
  return request({
    url: '/camp/campfacility/list',
    method: 'get',
    params: query
  })
}

// 查询营地关联设施详细
export function getCampfacility(cfid) {
  return request({
    url: '/camp/campfacility/' + cfid,
    method: 'get'
  })
}

// 新增营地关联设施
export function addCampfacility(data) {
  return request({
    url: '/camp/campfacility',
    method: 'post',
    data: data
  })
}

// 修改营地关联设施
export function updateCampfacility(data) {
  return request({
    url: '/camp/campfacility',
    method: 'put',
    data: data
  })
}

// 删除营地关联设施
export function delCampfacility(cfid) {
  return request({
    url: '/camp/campfacility/' + cfid,
    method: 'delete'
  })
}
